class Person {
    private String name;
    public int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name) {
        this.name = name;
    }

    public Person(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person() {

    }
    private void eat() {
        System.out.println("吃饭！");
    }

    public void show() {
        System.out.println(name+" "+age);
    }
}

public class Test {
    public static void main(String[] args) {
        Person person = new Person("zhangsan",10);
        person.setName("lisi");
        System.out.println(person.getName());
        person.show();
//        person.name = "张三";
//        person.eat();


    }
}
